package com.kelvem.saas.workbanch.core.manager.dao;

import com.kelvem.saas.workbanch.fsm.dao.BaseDao;
import com.kelvem.saas.workbanch.fsm.entity.Entity;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 实体表Dao
 *
 * @author kelvem
 * @version 1.0
 */
@Mapper
@Repository
public interface GraphqlDao extends BaseDao<Entity> {
    
    @Select("${sql}")
    Integer execute(Map sql);
    
    @Select("${sql}")
    List<Map<String, Object>> query(Map sql);

    @Select("${sql}")
    Map<String, Object> get(Map sql);

    @Select("${sql}")
    Integer add(Map sql);
    
}
